package com.zhang.modules.file.entity;

import com.zhang.common.jpa.entity.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.Size;

@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@Entity(name = "CosFileInfo")
@Table(name = "cos_file_info")
public class CosFileInfo extends BaseEntity {

    @Size(max = 128)
    @Column(name = "bucket_name", length = 128)
    private String bucketName;

    @Size(max = 255)
    @Column(name = "object_key", nullable = false, length = 128)
    private String objectKey;

    @Size(max = 128)
    @Column(name = "e_tag", length = 128)
    private String etag;

    @Size(max = 255)
    @Column(name = "location", length = 128)
    private String location;

    @Size(max = 128)
    @Column(name = "request_id", length = 128)
    private String requestId;

    @Size(max = 128)
    @Column(name = "upload_id", length = 128)
    private String uploadId;




}